package com.spring.dao.impl;

import org.springframework.stereotype.Component;

import com.spring.dao.UserDAO;
import com.spring.model.User;

@Component("userDAO")
public class UserDAOImpl extends SuperDAO implements UserDAO {

	private int daoId;

	public void save(User u){
		this.getHibernateTemplate().save(u);
	}
	
	public int getDaoId() {
		return daoId;
	}

	public void setDaoId(int daoId) {
		this.daoId = daoId;
	}

	public String toString() {
		return "userDAOId = " + daoId;
	}

	public void delete() {
		System.out.println("user deleted!");
	}
}
